
using System;
using System.Collections.Generic;
using System.Web.Services;
using AutoGear.BLL;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class AutoCompleteItemNumber : System.Web.Services.WebService
{

    public AutoCompleteItemNumber()
    {
        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string[] GetCompletionList(string prefixText, int count)
    {
        List<string> items = Product.GetAutoCompleteItemNumberData(prefixText, count);
        return items.ToArray();
    }
}

